import javax.swing.JOptionPane;

import domein.CustomMap;
import domein.RouteFindingAgentApp;

public class StartUp {

	public static void main(String args[]) {
		boolean goodInput = false;

		do {
			try {
				CustomMap.setDimension(Integer.parseInt(JOptionPane
						.showInputDialog("Input board dimensions (ex. 10)")));
				goodInput = true;
			} catch (NumberFormatException nfe) {
				JOptionPane.showMessageDialog(null, "Numerical entry expected. Please try again");
			}
		} while (!goodInput);
		
		new RouteFindingAgentApp().startApplication();
	}

}
